package com.it.myh;

/**
 * @Description: // 类说明，在创建类时要填写
 * @ClassName: Od_0203_01    // 类名，会自动填充
 * @Author: MYH          // 创建者
 * @Date: 2023/2/3 17:10   // 时间
 * @Version: 1.0     // 版本
 */
public class Od_0203_01 {
    public static void main(String[] args) {
        String str1 = "abc123";
        char[] chars = str1.toCharArray();
        for (char aChar : chars) {
            System.out.println(aChar);
        }

        char[] arr = new char[]{'m','y','h'};
        String s = new String(arr);
        System.out.println(s);

        System.out.println("========");
        String str2 = "abc123";
        byte[] bytes = str2.getBytes();
        for (byte aByte : bytes) {
            System.out.println(aByte);
        }
        System.out.println("============");
        byte[] bytes1=new byte[]{1,5,26,82,56,54};
        String s1 = new String(bytes1);
        System.out.println(s1);
    }
}
